<p>
  <b>Name:</b>
  <%=h @meal.name %>
</p>

<p>
  <b>Price:</b>
  <%=h @meal.price %>
</p>

<p>
  <b>Created by:</b>
  <%= link_to h(@meal.user.login), @meal.user if @meal.user %>
</p>

<% unless @meal.products.blank? %>
	<h3>Products:</h3>
	<%= render :partial => 'product', :collection => @meal.products %>
<% end %>

<h2>Comments (<%= @meal.meal_comments.count %>)</h2>
    <% if @meal.meal_comments.empty? %>
        No comments yet
    <% else %>
        <%= render :partial => 'comment', :collection => @meal.meal_comments %>
    <% end %>
<br/>

<% form_tag :action => :comment, :id => @meal do %>
  <%= text_area 'meal_comment', 'body', :rows => 5 %><br/>
  <%= submit_tag 'Send comment' %>
<% end %>

<%= link_to 'Edit', edit_meal_path(@meal) %> |
<%= link_to 'Back', meals_path %>
